<%@ page language="java" import="java.util.*,bean.*,java.text.*" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>会议纪要--详情</title>
		<%@include file="common.jsp"%>
		<script type="text/javascript">
		
		</script>
	</head>
	<body bgcolor="#B7E8FB">
	<% 	Meeting m = (Meeting) request.getAttribute("data");
		boolean isComplete = false;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		if("1".equals(m.getMeetingstate())){
			isComplete = true;
		}
	%>
		<form action="${ctx}/meetingupdate.ac?mid=<%=m.getMid() %>" method="post">
			<table width="960" border="5" align="center" cellpadding="10"
				cellspacing="0">
				<tr>
					<td height="140" colspan="2">
						<img src="${ctx }/images/top.jpg" width="1164" height="140" />
					</td>
				</tr>
				<tr>
					<td>
						会议主题
					</td>
					<td>
						<input type="text" name="topic" id="topic" value="<%= m.getTopic() %>" <% if(isComplete){out.print("disabled='disabled'");} %>/>
						&nbsp;&nbsp;
						 会议状态&nbsp;
						 <!-- 0为未完成， 1为已完成 -->
						<select id="state" name="state">
							<option value="0" <%if("0".equals(m.getMeetingstate())){out.print("selected='selected'");} %>>
								未完成
							</option>
							<option value="1" <%if("1".equals(m.getMeetingstate())){out.print("selected='selected'");} %>>
								已完成
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						与会人员
					</td>
					<td>
						<textarea name="participants" id="participants" cols="45" rows="5" <% if(isComplete){out.print("disabled='disabled'");} %>><%= m.getParticipants() %></textarea>
					</td>
				</tr>
				<tr>
					<td>
						会议类型
					</td>
					<td>
						<!-- 公司会议为1， 客户会议为2，部门会议为3 -->
						<select id="mtype" name="mtype" onchange="mtypeChange();" <% if(isComplete){out.print("disabled='disabled'");} %>>
							<option value="1" <%if("1".equals(m.getType())){out.print("selected='selected'");} %>>
								公司会议
							</option>
							<option value="2" <%if("2".equals(m.getType())){out.print("selected='selected'");} %>>
								客户会议
							</option>
							<option value="3" <%if("3".equals(m.getType())){out.print("selected='selected'");} %>>
								部门会议
							</option>
						</select>&nbsp;&nbsp;
						客户公司名称&nbsp;&nbsp;<input type="text" name="guestname" id="guestname" value="<%if(m.getGuestname() !=null && !"null".equals(m.getGuestname())){out.print(m.getGuestname());} %>" <% if(isComplete){out.print("disabled='disabled'");} %> />&nbsp;&nbsp;
						部门名称&nbsp;&nbsp;<input type="text" name="depName" id="depName" value="<%if(m.getDepartmentname()!= null && !"null".equals(m.getDepartmentname())){out.print(m.getDepartmentname());} %>" <% if(isComplete){out.print("disabled='disabled'");} %> />
					</td>
				</tr>
				<tr>
					<td>
						会议事项负责人
					</td>
					<td>
						<input type="text" name="mperson" id="mperson" value="<%=m.getParticipants() %>" <% if(isComplete){out.print("disabled='disabled'");} %>/>
					</td>
				</tr>
				<tr>
					<td>
						会议时间
					</td>
					<td>
						<input type="text" name="meetingTime" id="meetingTime" class="doubledate ipticon" value="<%out.print(sdf.format(m.getMeetingdate())); %>"  <% if(isComplete){out.print("disabled='disabled'");} %>/>
					</td>
				</tr>
				<tr>
					<td>
						会议事项完成时间
					</td>
					<td>
						<input type="text" name="completeTime" id="completeTime" class="doubledate ipticon" value="<%out.print(sdf.format(m.getCompletetime())); %>" <% if(isComplete){out.print("disabled='disabled'");} %>/>
					</td>
				</tr>
				<tr>
					<td>
						会议内容
					</td>
					<td>
						<textarea name="content" id="content" cols="60" rows="10" <% if(isComplete){out.print("disabled='disabled'");} %>><%=m.getContent() %></textarea>
					</td>
				</tr>
				<tr>
					<td>
						注意事项
					</td>
					<td>
						<textarea name="precautions" id="precautions" cols="45" rows="5" <% if(isComplete){out.print("disabled='disabled'");} %>><%= m.getPrecautions() %></textarea>
					</td>
				</tr>
				<tr>
					<td width="154">
						备注
					</td>
					<td>
						<input type="text" name="remark" id="remark" value="<%=m.getRemark() %>" <% if(isComplete){out.print("disabled='disabled'");} %>/>
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
					<td>
						<input type="submit" value="保存" />
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input name="" type="button" value="取消" onclick="history.go(-1);" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
